import request from "@/utils/request";

// 请求传感器数据
export const SensorArea = () => {
    return request({
        url: "/data/sensorpoints/list?pageNum=1&pageSize=500",
        method: "get",
    })
};
// 请求指定传感器id数据
export const SensorById = (query) => {
    return request({
        url: "/data/sensorpoints/list",
        method: "get",
        params: query
    })
};

// 请求火区数据
export const FireArea = () => {
    return request({
        url: "/data/basic/list?pageNum=1&pageSize=500",
        method: "get",
    })
};
export const FireByName = (query) => {
    return request({
        url: "/data/basic/list",
        method: "get",
        params: query
    })
};
// 请求火区数据
export const FireImageList = () => {
    return request({
        url: "/data/basic/imageList?pageNum=1&pageSize=500",
        method: "get",
    })
};

// 请求指定火区信息
export const FireAreaByName = (query) => {
    return request({
        url: "/data/basic/imageList",
        method: "get",
        params: query
    })
};

// 请求传感器异常数据：轮巡预警 
export const alarmData = () => {
    return request({
        url: '/data/sensorpoints/getSorIdList',
        method: 'get',
    })
};
// 传感器地图列表
export function sensorList(query) {
    return request({
        url: '/data/sensorpoints/list',
        method: 'get',
        params: query
    })
}

